#！ /bin/bash

python ../count_cfg_freq.py ../parse_train_vert.dat > cfg.count
python data_rep.py cfg.count ../parse_train_vert.dat rep.dat
python ../count_cfg_freq.py rep.dat > cfg_rep.count
python com_rp.py cfg_rep.count un.count bi.count
python cky.py un.count bi.count ../parse_dev.dat output.key
python ../eval_parser.py ../parse_dev.key output.key 